<link rel="stylesheet" type="text/css" href="<?= $base_url ?>css/home/login.css"/>

<div class="home">
	<div class="login">
		<div class="container-fluid padding-top-30">
			<div class="row">
				<div class="col-lg-4"></div>
				<div class="col-lg-5 hero-unit">
					<h1>Log-in</h1>
					
					<?php 
						$attr = array('class' => 'form-horizontal','style' => 'margin-top:20px');
						echo form_open('fmis/login', $attr);
					?>
						<div class="control-group">
							<label class="control-label" for="username">Username</label>
							<div class="controls">
								<input id="username" type="text" name="username" value="<?= $username;?>" placeholder = "username" >
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="password">Password</label>
							<div class="controls">
								<input id="password" type="password" name="password" placeholder = "password" >
							</div>
						</div>
						<div class="control-group">
							<div class="controls">
								<button type="submit" class="btn btn-primary">Sign in</button>
							</div>
						</div>
                        <div class="control-group">
                            <label class="control-label" >Account Type: </label>
                            <div class="controls">
                                <input type="radio" name="accounttype" value="student" <?php if($acctype == "student") echo 'checked';?>> Student
                                <input type="radio" name="accounttype" value="faculty" <?php if($acctype == "faculty") echo 'checked';?>> Faculty
                            </div>
                        </div>
						<div class="control-group">
							<label class="error" ><?= $message;?></label>
							<input type="hidden" name="message" value="<?= $message;?>">
						</div>
					<? echo form_close();?>
				</div>
				<div class="col-lg-3"></div>
			</div>
		</div>
	</div>
</div>